package com.hqyj.dao;

import com.hqyj.pojo.TbParking;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;

/**
 * <p>
 * 车位表 Mapper 接口
 * </p>
 *
 * @author gp
 * @since 2021-09-25
 */
@Repository
public interface TbParkingMapper extends BaseMapper<TbParking> {

    @Update("update tb_parking set name=#{name},update_time=#{updateTime} where code =#{code}")
    int updateNameAndUpdateTime(@Param("code") String code, @Param("name") String name, @Param("updateTime")LocalDateTime updateTime);

}
